package com.testmall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.testmall.entity.Comment;
import com.testmall.service.CommentService;
import com.testmall.mapper.CommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author Summer
* @description 针对表【b_comment】的数据库操作Service实现
* @createDate 2022-06-24 20:13:51
*/
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment>
    implements CommentService{

    @Autowired
    CommentMapper commentMapper;

    @Override
    public int savecomment(Comment comment) {
       return commentMapper.save(comment);
    }

    @Override
    public List querycomment(Map map) {
        return commentMapper.query(map);
    }
}




